#ifndef BERNSTEINPOLYLINE_H
#define BERNSTEINPOLYLINE_H

#include <QObject>
#include <QVector3D>
#include <QMatrix4x4>
#include "matrix.h"

class BernsteinPolyLine : public QObject
{
    Q_OBJECT

    QMatrix4x4 bQuad;
    float step;
    Matrix m;

    void calcStep(const QVector<QVector3D>&);

public:
    explicit BernsteinPolyLine(QObject *parent = 0);

    bool bindControlPoints(const QVector<QVector3D>&);

    QVector<QVector3D> getPolyLine();

    QVector<QVector3D> getPolyLine(const QVector<QVector3D>& c);

signals:

public slots:

};

#endif // BERNSTEINPOLYLINE_H
